package com.vogtec.fota.entity.UpgradeTask;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.vogtec.springboot.util.jackson.JsonTimeStampSerializer;
import com.vogtec.springboot.util.jackson.JsonTimestampDeSerializer;
import lombok.Data;

import java.sql.Timestamp;
import java.util.ArrayList;

/**
 * 新建任务
 * Created by wei on 2017/7/5.
 */
@Data
public class AddUpgradeTask {

    /** 任务名称 */
    private String taskName;

    /** 固件 */
    private int id;

    /** 升级开始时间 */
    @JsonSerialize(using = JsonTimeStampSerializer.class)
    @JsonDeserialize(using = JsonTimestampDeSerializer.class)
    private Timestamp startTime;

    /** 结束时间 */
    @JsonSerialize(using = JsonTimeStampSerializer.class)
    @JsonDeserialize(using = JsonTimestampDeSerializer.class)
    private Timestamp endTime;

    /** 产品型号 */
    private String productModel;

    /** 描述 */
    private String taskDes;

    /** 升级车辆选择 */
    private ArrayList<String> bikeNumList;

}
